define(['app'],function(app){return {module: function($scope, $http, eventBusService, httpService, params) {
	
	
	$scope.form.id = params.id;
	
	//查询家长列表
	$scope.find = function(){
		httpService.postpage(app.urls.parent_selectStuByParent,$scope.form,function(data){
			if("0000" === data.code){
    			$scope.rows = data.data;
    		}else{
    			alert(data.msg);
    		}
		});
	}
	$scope.find();
	
	$scope.goback = function(){
		eventBusService.publish("modal.page.close", {});
	}
	
	$scope.delete = function(row){
		httpService.post(app.urls.parent_delete_stu,{"id":row.id},function(data){
			if("0000" === data.code){
				$scope.find();
    		}else{
    			alert(data.msg);
    		}
		});
	}
	
	
}}});